package com.youlai.boot.system.model.vo;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * 赛事中心视图对象
 *
 * @author lwb
 * @since 2025-03-22 18:29
 */
@Getter
@Setter
@Schema( description = "赛事中心视图对象")
public class SysEventCenterVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;

    @Schema(description = "联赛名称")
    private String name;

    @Schema(description = "开赛时间")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @Schema(description = "主队")
    private String homeTeam;

    @Schema(description = "客队")
    private String patronTeam;

    @Schema(description = "推荐")
    private String recommend;

    @Schema(description = "重心指数")
    private Integer exponent;

    @Schema(description = "完赛比分")
    private String score;

    @Schema(description = "结果")
    private String result;

    @Schema(description = "颜色")
    private String color;
}
